package com.manbu.live.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2024/1/276:25 PM
 */
@SpringBootApplication
@EnableDiscoveryClient
public class GatewayApplication {
    /**
     * 没有引入springboot-web 所以 选择响应式启动  REACTIVE gateWay 内部引入了webFlux 所以必须是响应式启动
     * webFlux 基于netty实现
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication springApplication =  new SpringApplication(GatewayApplication.class);
        springApplication.setWebApplicationType(WebApplicationType.REACTIVE);
        springApplication.run(args);
    }
}
